package com.util;

import java.util.List;

/**
 * 描述：
 * <p>
 * 作者：jiangjiahao
 * 时间：2023年06月29日 10:14
 */
public class PageUtil<T> {

    private Integer pageIndex;  // 当前页
    private Integer pageSize;   // 每页显示条数
    private Integer pageCount;  // 数据总数
    private Integer pageTotal;  // 总页数
    private List<T> list;   // 数据集合

    public PageUtil() {
    }

    public PageUtil(Integer pageIndex, Integer pageSize, Integer pageCount, Integer pageTotal, List<T> list) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.pageCount = pageCount;
        this.pageTotal = pageTotal;
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageUtil{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", pageCount=" + pageCount +
                ", pageTotal=" + pageTotal +
                ", list=" + list +
                '}';
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}

//测试+++
//测试+++
//测试+++
//测试+++
//测试+++
//测试+++
//测试+++
